<DOCTYPE HTML>
<html>
<head>
<title></title>
<meta charset="utf-8">
<style type="text/css">

.total{border:1px solid red; width:80%; height:80%; margin:5% 10%; position:relative;}
.contain{border:1px solid black; width:60%; height: 60%; margin:10% 20%; position:relative;}
</style>
</head>
<body>
<div class="total">
<div class="contain">
</div>
</div>
</body>
</html>